package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author jh
 * @Date 2024/5/16 19:48
 * @PackageName:com.gt.web.srv.domain
 * @ClassName: CommonEntity
 * @Description: TODO
 */
@Data
public class BaseAuto implements Serializable {

    private static final long serialVersionUID = -123457568L;

    /**
     * <p>
     *     创建人
     * </p>
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT,updateStrategy = FieldStrategy.NOT_EMPTY)
    private String createBy;
    /**
     * <p>
     *     创建时间
     * </p>
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT,updateStrategy = FieldStrategy.NOT_EMPTY)
    private LocalDateTime createTime;
    /**
     * <p>
     *     修改人
     * </p>
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE,updateStrategy = FieldStrategy.NOT_EMPTY)
    private String updateBy;
    /**
     * <p>
     *     修改时间
     * </p>
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE,updateStrategy = FieldStrategy.NOT_EMPTY)
    private LocalDateTime updateTime;
}
